const KoaRouter = require('koa-router');
const router = new KoaRouter({ prefix: '/enum' });
const {getAllEnums, getMembersByCode} = require('../controllers/enumController');
const { authenticateToken } = require('../middleware/validation');

router.get('/all', authenticateToken, getAllEnums);
router.get('/:enumName', authenticateToken, getMembersByCode);

module.exports = router;